<?$category=$this->category?>

<form action="" method="post">


    <input type="hidden" name="form[id]" value="<?php echo $category['id']?>">
    <?if (empty($this->user)):?>
    <input type="text" name="form[author]" placeholder="Имя"><br>
    <input type="email" name="form[email]" placeholder="Email"><br>
     <?endif;?>

    <input type="text" name="form[phone]" placeholder="Телефон"><br>
    <select name='form[subCat]'>
        <?foreach ($this->list as $value):?>
            <option  value="<?php echo $value['id']?>"><?php echo $value['name']?></option>
        <?endforeach?>
        </select><br>
    <textarea cols="40" rows="6" name="form[content]" id="text" placeholder="Текст объявления"></textarea><br>
    <input type="submit" value="Добавить">




</form>